package com.tx.websocket.demo.dao;

import java.util.List;

import com.tx.websocket.demo.model.Department;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface DepartmentDao {

    Integer addDepartment(Department department);

    List<Department> listDepartment(@Param("department") Department department);

    Department getDepartmentByPrimaryKey(@Param("id") Long id);

    Integer delDepartmentByPrimaryKey(@Param("id") Long id);

    Integer updateDepartment(Department department);

}
